import request from '@/utils/request'
const module = '/admin/system/user'
//角色的分类查询带条件
export const GetUserList = (pageNum, pageSize, data) => {
  return request.get(`${module}/getUserList/${pageNum}/${pageSize}`, {
    params: data,
  })
}

//删除角色
export const DeleteUser = id => {
  return request.delete(`${module}/deleteById/${id}`)
}
//添加角色
export const SaveUser = data => {
  return request.post(`${module}/saveUser`, data)
}
//修改角色
export const UpdateUser = data => {
  return request.put(`${module}/updateUser`, data)
}
